package org.co.controller;

import org.co.model.Student;
import org.co.service.impl.SelectStudentByNameImpl;

import java.util.List;

public class SelectStudentByNameController {

    static SelectStudentByNameImpl selectStudentByName;
    static {
        selectStudentByName = new SelectStudentByNameImpl();
    }
    public static void main(String[] args) {
        List<Student> studentListByName = selectStudentByName.selectStudentByName("张飞");
        studentListByName.forEach(System.out::println);
    }
}
